package cn.shop.cloud.service;


import cn.shop.cloud.domain.SeckillOrder;

/**
 * @program: work
 * @ClassName ISeckillOrderService
 * @description:
 * @author: 李尧坤
 * @create: 2025−01-09 19:45
 * @Version 1.0
 **/

public interface ISeckillOrderService {

    /**
     * 用户是否参与过了本场抢购
     * @param id    用户id
     * @param seckillId     场次id
     * @return
     */
    public SeckillOrder findUserIdAndSeckillId(Long id, Long seckillId);

    /**
     * 创建订单
     * @param userId 用户id
     * @param seckillId 场次id
     * @param orderNo 订单编号
     */
    public void createSeckillOrder(Long userId, Long seckillId, String orderNo);
}
